package com.ssmdemo01.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ssmdemo01.pojo.User;
import com.ssmdemo01.service.UserService;
import com.ssmdemo01.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author dengxiang
* @description 针对表【news_user】的数据库操作Service实现
* @createDate 2023-12-07 16:42:55
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> queryUsers() {
        return userMapper.selectList(null);
    }
}




